package game.events
{
	import flash.events.Event;

	public class SceneEvent extends Event
	{
		/**
		 * 地图配置文件路径改变
		 */		
		public static const MAP_CONFIG_PATH_CHANGE:String = "MapConfigPathChange";
		
		/**
		 * 地图配置改变
		 */		
		public static const MAP_CONFIG_CHANGE:String = "MapConfigChange";
		
		/**
		 * 地图资源加载完成
		 */		
		public static const MAP_ASSET_LOAD_COMPLETE:String = "MapAssetLoadComplete";
		
		/**
		 * 地图资源库加载完成
		 */		
		public static const MAP_ASSET_LIB_LOAD_COMPLETE:String = "MapAssetLibLoadComplete";
		
		/**
		 * 当通过指定的资源库路径后，资源加载成功事件
		 */
		public static const UPDATE_BY_ASSET_LIB_PATH_ASSET_LOAD_COMPLETE:String = "UpdateByAssetLibPathAssetLoadComplete";	
		
		/**
		 * 事件传递的数据 
		 */		
		private var _data:Object;
		
		/**
		 * 事件传递的数据
		 */		
		public function get date():Object
		{
			return _data;
		}
		
		public function SceneEvent(type:String, data:Object=null)
		{
			super(type, data);
			_data=data;
		}
	}
}